//
//  OperaDataModel.m
//  XiXi
//
//  Created by HawkingWang on 16/10/19.
//  Copyright © 2016年 xi-xi.cc. All rights reserved.
//

#import "OperaDataModel.h"

@implementation OperaDataModel

-(OperaDataModel *) initModel:(NSDictionary *)dic{
    if(self){
        self._id = dic[@"id"];
        self.name = dic[@"name"];
        self.fee = dic[@"fee"];
        self.hall_id = dic[@"hall"];
        self.opera_id = dic[@"opera"];
        
        self.schedule_id = dic[@"schedule_id"];
        self.status = dic[@"status"];
        self.line = dic[@"line"];
        self.seat = dic[@"seat"];
        self.saled = dic[@"saled"];
        self.status = dic[@"status"];
        self.used = dic[@"used"];
    }
    return self;
}
+(OperaDataModel *) initWithDic:(NSDictionary *)dic
{
    OperaDataModel *model = [[OperaDataModel alloc]init];
    return [model initModel:dic];
}

@end
